package net.sareweb.acab.session;

import net.sareweb.acab.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("suggestionList")
public class SuggestionList extends EntityQuery<Suggestion> {

	private static final String EJBQL = "select suggestion from Suggestion suggestion";

	private static final String[] RESTRICTIONS = {};

	private Suggestion suggestion = new Suggestion();

	public SuggestionList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Suggestion getSuggestion() {
		return suggestion;
	}
}
